package listStack;

import java.util.LinkedList;

public class linkedstack {
    public static void main(String[] args) {
        LinkedList<Integer> stack = new LinkedList<>();
        stack.push(10); //头插
        stack.push(20);
        stack.push(30);

        stack.pop(); //头删
    }
}
